package com.ali.framework.controller;

import com.ali.framework.feign.PaymentFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Smile
 * @Date: 2023/12/13/16:31
 * @Description:
 */
@RestController
@Slf4j
public class FrameTestController {

    @Autowired
    private PaymentFeign paymentFeign;

    @GetMapping("/feign/ts/{id}")
    public String ts(@PathVariable("id") Long id) {
        return paymentFeign.test(id);
    }


}
